﻿using System;
using System.Collections.Generic;
using System.Text;

namespace GroupChat2013.Service
{
    /// <summary>
    /// 服务地址帮助类，用于获取服务的API地址
    /// </summary>
    public static class ServiceURL
    {
        //注册
        //public const string UserRegisterURL = "http://{0}/ac/user/reg";

        /// <summary>
        /// 注销
        /// </summary>
        //public const string UserUnRegisterURL = "http://{0}/ac/user/unreg";

        /// <summary>
        /// 登陆
        /// </summary>
        public const string UserLoginURL = "http://{0}/ac/user/rtxlogin";

        /// <summary>
        /// 从RTX登陆
        /// </summary>
        public const string UserSignURL = "http://{0}/ac/user/rtxsign";

        /// <summary>
        /// 修改用户信息
        /// </summary>
        public const string UpdateUserInfo = "http://{0}/ac/user/resetpasswd";

        /// <summary>
        /// 获得系统提供的表情文件列表
        /// </summary>
        public const string SystemMeoticonURL = "http://{0}/ac/img/lookfiles/sys";

        /// <summary>
        /// 获得自定义表情文件列表
        /// </summary>
        public const string UserMeoticonURL = "http://{0}/ac/img/lookfiles/user";

        /// <summary>
        /// 上传定制用户表情
        /// </summary>
        public const string UpdateUserMeoticonURL = "http://{0}/ac/img/lookfile/user";

        /// <summary>
        /// 获取/接受群聊天信息
        /// </summary>
        public const string GroupMessageURL = "http://{0}/chat/group/{1}";

        /// <summary>
        /// 接收/发送用户私聊聊天信息
        /// </summary>
        public const string UserMessageURL = "http://{0}/chat/user/{1}";

        /// <summary>
        /// 获取群用户列表
        /// </summary>
        public const string GetGroupUserListURL = "http://{0}/ac/group/users/{1}";

        /// <summary>
        /// 上传群聊文件URL
        /// </summary>
        public const string UploadGroupFileURL = "http://{0}/upload/share/group/{1}";

        /// <summary>
        /// 上传私聊文件URL
        /// </summary>
        public const string UploadUserFileURL = "http://{0}/upload/share/person/{1}";

        /// <summary>
        /// 获取个人分享通知内容
        /// </summary>
        public const string GetPersonShareFileUrl = "http://{0}/ac/sharefile/notify4person/{1}/{2}?cid={3}";

        /// <summary>
        /// 获取群分享通知内容
        /// </summary>
        public const string GetGroupShareFileUrl = "http://{0}/ac/sharefile/notify4group/{1}/{2}?cid={3}";

        /// <summary>
        /// 获取群公告
        /// </summary>
        public const string GetGroupNotice = "http://{0}/ac/notices/{1}/{2}-{3}";

        /// <summary>
        /// 我的空间
        /// </summary>
        public const string MyZOOMURL = "http://{0}/ac/rtx/home?cid={1}";

        /// <summary>
        /// 群空间
        /// </summary>
        public const string GroupZOOMURL = "http://{0}/ac/rtx/groupspace/{1}?cid={2}";

        /// <summary>
        /// 文件共享
        /// </summary>
        public const string GroupFileShareURL = "http://{0}/ac/rtx/groupshare/{1}?cid={2}";

        /// <summary>
        /// 群聊天信息
        /// </summary>
        public const string GroupChatMsgURL = "http://{0}/ac/rtx/groupchat/{1}?cid={2}";

        /// <summary>
        /// 私聊聊天消息
        /// </summary>
        public const string UserChatMsgUrl = "http://{0}/ac/rtx/personalchat/{1}?cid={2}";

        /// <summary>
        /// 获取群明细URL
        /// </summary>
        public const string GroupInfoURL = "http://{0}/ac/group/{1}";

        /// <summary>
        /// 群聊天内容嵌套图片上传
        /// </summary>
        public const string GroupChatMsgImageUrl = "http://{0}/upload/pic/gchat/{1}";

        /// <summary>
        /// 私聊天内容嵌套图片上传
        /// </summary>
        public const string UserChatMsgImageUrl = "http://{0}/upload/pic/pchat/{1}";

        /// <summary>
        /// 获取群列表
        /// </summary>
        public const string GroupListURL = "http://{0}/ac/groups";

        /// <summary>
        /// 读取私聊图片文件
        /// </summary>
        public const string UserChatImageURL = "http://{0}/fcenter/pic/pchat/{1}-{2}/{3}?cid={4}";

        /// <summary>
        /// 读取群聊图片文件
        /// </summary>
        public const string GroupChatImageURL = "http://{0}/fcenter/pic/gchat/{1}/{2}?cid={3}";

        /// <summary>
        /// 获取组织架构的跟节点
        /// </summary>
        public const string OrganizeRootNode = "http://{0}/ac/departments/rootnode4view?cid={1}";

        /// <summary>
        /// 获取组织架构的跟节点
        /// </summary>
        public const string OrganizeChatNode = "http://{0}/ac{1}";

        /// <summary>
        /// 主面板Tab页签配置
        /// </summary>
        public const string TabConfigURL = "http://{0}/infoyunconfig/infoyunTabConfig.db";

        /// <summary>
        /// 主面板按钮配置
        /// </summary>
        public const string MainButtonConfigURL = "http://{0}/infoyunconfig/infoyunMainButtonConfig.db";

        /// <summary>
        /// 应用按钮区域配置
        /// </summary>
        public const string PersonAppConfig = "http://{0}/infoyunconfig/infoyunPersonAppConfig.db";

        /// <summary>
        /// 群聊窗口按钮配置信息
        /// </summary>
        public const string GroupAppConfig = "http://{0}/infoyunconfig/infoyunGroupAppConfig.db";

        /// <summary>
        /// 通知栏
        /// </summary>
        public const string AnnounceConfig = "http://{0}/infoyunconfig/infoyunAnnounceConfig.db";

        /// <summary>
        /// 私聊记录
        /// </summary>
        public const string UserChatMsgRecordUrl = "http://{0}/ac/chats/user/{1}/{2}-{3}";

        /// <summary>
        /// 群聊记录
        /// </summary>
        public const string GroupChatMsgRecordUrl = "http://{0}/ac/chats/group/{1}/{2}-{3}";

        #region 群管理

        /// <summary>
        /// 获取群列表
        /// </summary>
        public const string GetManageGroupListUrl = "http://{0}/ac/groups/admin?cid={1}";

        /// <summary>
        /// 添加群
        /// </summary>
        public const string AddGroupUrl = "http://{0}/ac/group/new?cid={1}&name={2}";

        /// <summary>
        /// 修改群
        /// </summary>
        public const string UpdateGroupUrl = "http://{0}/ac/group/{1}?cid={2}&groupName={3}";

        /// <summary>
        /// 删除群
        /// </summary>
        public const string DeleteGroupUrl = "http://{0}/ac/group/{1}?cid={2}";

        /// <summary>
        /// 发布群公告
        /// </summary>
        public const string SetGroupNoticeUrl = "http://{0}/ac/notice/new/{1}?cid={2}&content={3}";

        /// <summary>
        /// 添加群用户
        /// </summary>
        public const string AddGroupUserUrl = "http://{0}/ac/group/addusers/{1}?cid={2}{3}";

        #endregion
    }
}
